package com.xmy.cultivate.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.FincDisburse;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 支出表 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2025-05-17
 */
public interface IFincDisburseService extends IService<FincDisburse> {

    public IPage<FincDisburse> findAll(IPage<FincDisburse> page, String yearPart, String quarterNum, String handleName, String fincTypeId, String fincTypeSubId, String schoolOrDepartmentId, String startDate, String endDate  );

    public List<Map<String, Object>> getSchoolAndDepart();

    public boolean updateFincDisburseInfo( Long schoolId,
                                    Long departmentId,
                                    Long fincTypeId,
                                    Long fincTypeSubId,
                                    Long handleId,
                                    String handleDate,
                                    BigDecimal disbursePrice,
                                    String disburseDetail,
                                    String remark,
                                    Long adminId,
                                    Long id);

    public IPage<FincDisburse> fincDisburseCount(IPage<FincDisburse> page, String yearPart, String quarterNum, String fincTypeId,String fincTypeSubId, String startDate, String endDate);


    public List<FincDisburse> getFincDisburse(String yearPart, String quarterNum, String fincTypeId,String fincTypeSubId, String startDate, String endDate);

    public List<FincDisburse> getFincDisburseFindAll(String yearPart, String quarterNum, String fincTypeId,String fincTypeSubId, String startDate, String endDate);

}
